curl -XPOST 'http://localhost:9200/parent_child/_search?pretty=true' -d '{
    "query": {
        "filtered": {
            "query": {
                "bool": {
                    "must": [
                        {
                            "term": {
                                "name": "auchan"
                            }
                        }
                    ]
                }
            },
            "filter": {
                "has_child": {
                    "type": "department",
                    "query": {
                        "filtered": {
                            "query": {
                                "bool": {
                                    "must": [
                                        {
                                            "term": {
                                                "name": "toys"
                                            }
                                        }
                                    ]
                                }
                            },
                            "filter": {
                                "has_child": {
                                    "type": "product",
                                    "query": {
                                        "term": {
                                            "trademark": "tiger"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}'